﻿using SX.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SX.Core
{
    public class LogService: BaseService
    {
        public override bool NeedAddLog
        {
            get
            {
                return false;
            }
        }
        public LogService():base("LYJobs", "SysLog","日志") {

        }

        public  void Add(string Action, string Detail) {
            this.Insert(new { Action = Action, Detail = Detail, Ip = CommonHelper.GetClientIp(), UserAgent = CommonHelper.GetUserAgent(), CreateBy= AuthHelper.GetName() });
        }
    }
}
